package com.vsen.lpr.pojo.dto.measure;

import com.vsen.lpr.common.validated.DateFormat;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class MeansureListDto {
    @NotNull(message = "userId不能为空")
    private String userId;

//    @DateFormat(format = "yyyy-MM-dd",message = "日期格式错误，正确格式为yyyy-MM-dd")
    private String startDate;
//    @DateFormat(format = "yyyy-MM-dd",message = "日期格式错误，正确格式为yyyy-MM-dd")
    private String endDate;
    @Max(value = 2,message = "type最大值不能超过2")
    @Min(value = 0,message = "type最小值不能小于0")
    private Integer type;
}
